<%@page import="Data.TblTudienDonvihanhchinh"%>
<%@page import="DAO.tblTuDiendonviDAO"%>
<%@page contentType="text/html" pageEncoding="UTF-8"%>
<% 
	String huyen = null;
	if(request.getParameter("p")!=null){
		huyen = request.getParameter("p");
		tblTuDiendonviDAO objDAO_5 = new tblTuDiendonviDAO();
		TblTudienDonvihanhchinh[] list_tenhuyen = null;
		list_tenhuyen = objDAO_5.getXabyHuyen(Integer.parseInt(huyen));
		%>
		<select name="slXa" id="slXa" >
			<option value="">--Chọn xã--</option>
		<%  
		for(int i=0;i<=list_tenhuyen.length-1;i++){
			TblTudienDonvihanhchinh obj_xa = list_tenhuyen[i]; 
			%>
				<option value="<%=obj_xa.getMaXa() %>"><%=obj_xa.getTen() %></option>
			<% 
 			} 
 		%>
 		</select>
 		<%
 		
	}
%>